package es.denisneuf.core.imanagers 
{

	/**
	* @author Daniel Alvaro
	* @work dalvaro@ifoline.com
	* @gmail znpobbx@gmail.com
	* @msn denisneuf@hotmail.com
	* @twitter znpobbx
	**/


	dynamic public class SingleContent extends Template 
	{
		public static var className:String = "SingleContent";
		public static var packageName:String = "es.denisneuf.core.imanagers";
		public static var version:String = "1.0.00";
		public static var author:String = "Daniel Alvaro";
		
		private var _xml:XML;

		public function SingleContent():void 
		{		 
		}
		
		public function set xml(newXML:XML):void{
			_xml = newXML;
			super.renderDataFromXML(_xml);
		}
		
		
		public function get xml():XML{
				return _xml;
		}
		
		override public function destroyTemplate():void
		{
			trace ('override destroyTemplate('+className+')--super.container: ' + super.container.name);
			super.destroyTemplate();
			
		}	
		
		
		//INVOKE METHODS FROM SUPERCLASS
		public function	sum(a:int, b:int):int
        {
        	return (a + b);
        }	
		//		


	}
}
